<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/content_items/article.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  The article class is an implementation of the Content_item class.
 */

require_once("./modules/content_items/content_item.php");
    
class Article extends Content_item
{
    public $Title;
    public $Article_text;
    public $Title_size = "h2";
    public $Date = "";
    
    public function __construct($title)
    {
	$this->Title = $title;
	$this->Style_class = "article";
	
    }
    
    public function Render()
    {
	$hs = $this->Title_size;
	
	$to_render = <<<EOF

	    <!-- Article -->
	    <div class="{$this->Style_class}">
	    <{$hs} class="title">{$this->Title}</{$hs}>
		<p class="meta"><span class="date">{$this->Date}</span></p>
		<div class="entry">
		{$this->Article_text}
		</div>
	    </div>
	    <!-- end Article -->
EOF;
	print $to_render;
    }
    
}

?>

